<extend name="Common@Common:layui" />
<block name="title">
    <title>编辑积分规则</title>
</block>
<block name="style">
    <style>

    </style>
</block>

<block name="main">
    <div class="layui-container" style="width:94%;">
        <form class="layui-form close-dialog" action="/api/jifen/edit.html" method="post" style="margin-top:20px;">
            <div class="layui-form-item">
                <label class="layui-form-label">积分KEY:</label>
                <div class="layui-input-block">
                    <input type="text" name="skey" value="{$info.skey}" required lay-verify="required" placeholder="请输入积分KEY" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">积分规则：</label>
                <div class="layui-input-block">
                    <input type="text" name="text" value="{$info.text}" required lay-verify="required" placeholder="请输入积分规则描述" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">设置积分：</label>
                <div class="layui-input-block">
                    <input type="number" name="jifen" value="{$info.jifen}" required lay-verify="required" placeholder="请输入积分（可为负值）" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">状态</label>
                <div class="layui-input-block">
                    <if condition="$info['status'] eq '-1'">
                        <input type="radio" name="status" value="1" title="正常">
                        <input type="radio" name="status" value="-1" title="禁用" checked>
                        <else/>
                        <input type="radio" name="status" value="1" title="正常" checked>
                        <input type="radio" name="status" value="-1" title="禁用">
                    </if>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <input type="hidden" name="id" value="{$info.id}">
                    <input type="hidden" name="uid" value="{$info.uid}">
                    <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
                </div>
            </div>
        </form>
    </div>
</block>
<block name="script">
    <script>
    </script>
</block>